from selenium import webdriver
from selenium.webdriver.common.by import By

from options import options

driver = webdriver.Chrome(options=options)
driver.get(r'http://172.16.36.120:8080/bsams/front/login.do')
driver.maximize_window()
driver.implicitly_wait(30)
#登录的参数

id = 1
username='test10'
password='123456'
# 登录有下拉框的项目
driver.find_element(By.XPATH, '//*[@id="taskId"]').clear()
driver.find_element(By.XPATH, '//*[@id="taskId"]').send_keys(id)
driver.find_element(By.XPATH, '//*[@id="loginName"]').clear()
driver.find_element(By.XPATH, '//*[@id="loginName"]').send_keys(username)
driver.find_element(By.XPATH,'//*[@id="password"]').clear()
driver.find_element(By.XPATH,'//*[@id="password"]').send_keys(password)

# 如果是select标签的话，直接导包Select,执行下列操作
